const dateFn = () => {
    const D = new Date();
    const year = D.getFullYear(),
        mouth = D.getMonth() + 1,
        day = D.getDate(),
        hour = D.getHours(),
        minute = D.getMinutes(),
        second = D.getSeconds();
    return `${year}.${mouth < 10 ? `0${mouth}` : mouth}.${day < 10 ? `0${day}` : day} ${hour < 10 ? `0${hour}` : hour}:${minute < 10 ? `0${minute}` : minute}:${second < 10 ? `0${second}` : second}`;
};
module.exports = dateFn;
